/**
 * Copyright (c) 2012 Nokia Corporation.
 */

package com.nokia.example.simplepurchase.uicomponents;

import com.nokia.mid.ui.CanvasGraphicsItem;

/**
 * 
 */
public abstract class AbstractStepIndicator extends CanvasGraphicsItem {
	// Members
	protected int _width = 0;
	protected int _height = 0;
	protected int _stepCount = 0;
	protected int _currentStep = 0;
	
	/**
	 * Constructor.
	 * @param width
	 * @param height
	 */
	public AbstractStepIndicator(int width, int height, int stepCount) {
		super(width, height);
		_width = width;
		_height = height;
		_stepCount = stepCount;
	}
	
	/**
	 * Sets the current step.
	 * @param step The current step to set.
	 */
	public void setCurrentStep(int step) {
		_currentStep = step;
		repaint();
	}
	
	/** 
	 * @return The height of the item.
	 */
	public final int height() {
		return _height;
	}
}
